package com.fas.core.web.response;

import java.io.Serializable;
/**
 * 
 * Cottroler返回客户端结果基类
 *
 * @Copyright: Copyright (c) 2015 Knight 
 * @anthor yixiaoping<thinker1013@163.com>
 * @since 2015年10月28日 下午3:15:06
 * @version V1.0
 */
public class Result implements Serializable{
    
	private static final long serialVersionUID = 1L;
	
	protected ResultStatus status;
	protected String message;
	public ResultStatus getStatus() {
		return status;
	}
	public void setStatus(ResultStatus status) {
		this.status = status;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	
	public String getStatusCode(){
		return status.getCode();
	}
	public Result(ResultStatus status, String message) {
		super();
		this.status = status;
		this.message = message;
	}
	
	public Result(ResultStatus status) {
		super();
		this.status = status;
	}
	
	public Result() {
		super();
	}
}
